#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    : 2023/10/23 0:44
# @function: the script is used to do something.
# @version :

int_set = {1, 2, 3}

int_set.add(4)
print(int_set)

# int_set.clear()
# print(int_set)

# set_data = {'a', 'b', 'c', 'd', 'e', 'f'}
# # 随机移除元素
# result = set_data.pop()
# print(result)
#
# set_data.remove('e')
# print(set_data)

# update可以传递 str list tuple set dict
int_set.update({'name': 'micah', 'age': 10})
print(int_set)
